<%@page language="java" contentType="text/html;charset=UTF-8"%>
<%@include file="/WEB-INF/core/common/top.jsp" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<link type="text/css" rel="stylesheet" href="${ctx}/core/styles/validatorAuto.css" />
<script src="${ctx}/core/scripts/jquery_last.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>

<script language="javascript">
<!--
	$(document).ready(function(){
		$.formValidator.initConfig({formid:"form0",onerror:function(msg){showMessage(msg);}});
		$("#title").formValidator().inputValidator({min:1,max:50,onerror:"<s:text name='program.name.not.null'/>",onerrormax:"<s:text name='program.name.over.length'/>"});
		$("#programeType").formValidator().inputValidator({min:1,onerror:"<s:text name='program.type.not.null'/>"});
		
	});	

	function doCancel(){
		location='${ctx}/epgManage/epgManage.action?act=reQuery';
	}
//-->	
</script>

<body style="overflow-x:hidden;overflow-y:auto;" >
<form method="post" action="${ctx}/epgManage/epgManage.action" name="form0" id="form0">

	<s:hidden name="act" value="editSubmit"></s:hidden>
	<s:hidden name="program.contentId" value="%{program.contentId}"></s:hidden>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>

  <tr>
    <td colspan="4" class="biaoge">
         <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
                 <tr align="left">
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="channel.code"/></td>
                      <td width="19%" bgcolor="#DDE4EA">
							<s:property value="program.channelCode"/>
					  </td>
					  <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.name"/>&nbsp;<font color="red">*</font></td>
                      <td width="19%" bgcolor="#DDE4EA">
					  		<s:textfield id="title" name="program.title" value="%{program.title}" class="textbox_css" style="width:200px" theme="simple"/>
					  </td>
                 </tr>
                 
                 
                 <tr align="left">
                      <td height=23 width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.start.time"/></td>
                      <td width="19%" bgcolor="#DDE4EA">
					  		<s:date name="program.startTime" format="yyyy-MM-dd HH:mm:ss" />
					  </td>
					  <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.end.time"/></td>
                      <td width="19%" bgcolor="#DDE4EA">
                      	<s:date name="program.endTime" format="yyyy-MM-dd HH:mm:ss" />
					  </td>
                 </tr>  
                 <tr align="left">
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.category"/>&nbsp;<font color="red">*</font></td>
                      <td width="19%" bgcolor="#DDE4EA">
                      	<select id="programeType" name="program.category" style="width:150px">
                      		<option value=""></option>
                      		<s:iterator value="contentTypeList" id="st">
                      			<option value="<s:property value='#st.genre'/>" <s:if test="program.category==#st.genre">selected</s:if>>
                      				<s:text name="%{#attr.st.genre}"/>
                      			</option>
                      		</s:iterator>
                      	</select>
					  </td>
					  <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.duration"/></td>
                      <td width="19%" bgcolor="#DDE4EA">
                      		<s:property value="program.duration"/>
					  </td>
                 </tr> 
                 
                 <tr align="left">
                      <td width="6%" bgcolor="#DDE4EA" >&nbsp;<s:text name="program.description"/></td>
                      <td width="19%" bgcolor="#DDE4EA" colspan=3>
                      		<s:textarea  name="program.description" class="textbox_css" cols="60" rows="4" theme="simple"/>
					  </td>
                 </tr> 
                 <tr>
                      <td height="10" colspan="6" background="../core/images/line5.gif">&nbsp;</td>
                 </tr>
                 <tr>
                      <td height="25" colspan="6" align="center">
							<input name="button22" type="submit" class="btn" value=" <s:text name='button.save'/> "/>
			                <input type="button" name="Button11" value=" <s:text name='button.return' /> " class="btn" onClick="doCancel();" />
			           </td>
                 </tr>
             </table>
            </td>
          </tr>
    </table>
   </form>
</body>
